/**
 * 
 */
package com.techq.weibo.share;

import org.apache.http.client.HttpClient;

import com.techq.weibo.meta.Comment;
import com.techq.weibo.meta.User;
import com.techq.weibo.robot.CrawlRobot;
import com.techq.weibo.share.exception.ShareException;

/**
 * @author tassemble@gmail.com
 * 2011-8-2
 */
public interface Share {
	
	/**
	 * @param url the specialized URL. like SINA share URL.
	 * @param user account you use to login
	 * @return
	 * boolean if success return true or false
	 */
	public boolean shareVideoWithoutLogon(String url, User user);


	boolean shareVideoWithoutComment(String url, CrawlRobot robot) throws ShareException;


	/**
	 * share and add comment(appending or not)
	 * @param url
	 * @param robot
	 * @param comment
	 * @return
	 * @throws ShareException
	 * boolean
	 */
	boolean shareVideoWithComment(String url, CrawlRobot robot, Comment comment) throws ShareException;

	
	boolean shareSongUsingSearch(String url, CrawlRobot robot, String keywords, Comment comment) throws ShareException;
	
}
